package com.bawei.company

import android.graphics.Color
import com.bawei.base.bean.CompanyApplyEntity
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class CompanyapplyAdapter:BaseQuickAdapter<CompanyApplyEntity,BaseViewHolder>(R.layout.item_companyapply){
    override fun convert(helper: BaseViewHolder, item: CompanyApplyEntity) {
        helper.setText(R.id.companyapply_number,"申请编号："+item.applicationNumber)
        helper.setText(R.id.companyapply_time," 申请时间："+item.entryTime)

        if (item.status=="新建"){
            helper.setTextColor(R.id.companyapply_statu, Color.GRAY)
            helper.setText(R.id.companyapply_statu, "待确认")
        }else{
            helper.setText(R.id.companyapply_statu, "已完成")
            helper.setTextColor(R.id.companyapply_statu, Color.GRAY)
        }

    }

}